]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Clip the icon+label to allocation when expanding
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Tue, 9 Jun 2026 07:44:39 +0000 (15:44 +0800)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Jun 2026 17:48:04 +0000 (19:48 +0200)
It's hard to see at regular speed, but if you slow down the animation
then it becomes apparent the label was appearing outside the tile during
expansion. This keeps it clipped inside the expanding tile.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4247>
(cherry picked from commit 60ec1fae0d581490f2a82cb60499731977bbdfff)

js/ui/appDisplay.js

index f967b5ea65f26e20f0b14bd51a2eabd0d7653d1d..82e41d5e659e9276068f5c21705f28edc81f46b2 100644 (file)
@@ -1909,6 +1909,7 @@ class AppViewItem extends St.Button {
             leader.disconnect(id);
         });
 
+        this.icon.clip_to_allocation = expand;
         leader.save_easing_state();
         leader.set_easing_duration(expand
             ? APP_ICON_TITLE_EXPAND_TIME